#!/usr/bin/env python 
""" classic class """
class CA(): 
    var = 'a'
class CB(CA): 
    pass
class CC(CA): 
    var = 'c'
class CD(CB, CC): 
    pass
""" new-style class """
class NA(object): 
    var = 'a'
class NB(NA): 
    pass
class NC(NA): 
    var = 'c'
class ND(NB, NC): 
    pass
if __name__ == "__main__": 
    print CD.var 
    print ND.var